package com.xyz.rok.tools.utils;

public class main {

    public static void main(String[] args) {
        int x = 300, d = 100, y = 300;
        int m = 1;
        for (int i = 1; i < 11; i++) {
            for (int j = 0; j < 2; j++) {
                if (j == 0) {
                    for (int k = 0; k < i; k++) {
                        x=x+(m*d);
                        System.out.println(x+","+y);
                    }
                } else {
                    for (int k = 0; k < i; k++) {
                        y=y+(m*d);
                        System.out.println(x+","+y);
                    }
                }
            }
            if (m > 0) {
                m = -1;
            } else {
                m = 1;
            }

        }
    }
}
